<?php
/**
 * 优惠套餐
 *
 * by abc.com 多用户商城
 *
 *
 */
//by abc.com
//use Shopnc\Tpl;

defined('InShopNC') or exit('Access Invalid!');
class bundlingControl extends mobileHomeControl{
	public function __construct() {
        parent::__construct();
    }

    //获取优惠套餐列表
    public function bundling_listOp(){
    	$model_pbundling=Model('p_bundling');
    	
    	$condition['bl_state']=1;
    	//所需字段
        $bunding_list=$model_pbundling->getBundlingList($condition);
        output_data(array('bundling_list' => $bunding_list));
        
    }

    //获取优惠套餐详细商品
    public function bundling_goodsOp(){
    	$model_pbundling=Model('p_bundling');
    	
    	$condition['bl_id']=intval($_POST ['bl_id']);
    	//所需字段
        $bunding_list=$model_pbundling->getBundlingGoodsList($condition);
        output_data(array('bundling_goods' => $bunding_list));
        
    }

    
	

}